package com.lyy.weather.bean;

import java.util.List;

//天气生活指数
public class LifeIndices {

    //城市信息，用于判断这是哪里的天气
    private String locationId;
    //表中的id



    //下面是从api中接收的信息//
    // **********************
    //用于存储不同的天气生活指数，从数据库取出数据时要存放在这里
    private List<DifferentIndices> indicesList;

    public static class DifferentIndices{//不同的天气生活指数种类
         private int mid;
         //表中的id
        private String date;
        //       预报日期
        private int type;
        //  生活指数类型ID
        private String name;
        //   生活指数类型的名称
       private String level;
        // 生活指数预报等级
       private String category;
        // 生活指数预报级别名称
       private String text;
        // 生活指数预报的详细描述，可能为空


        @Override
        public String toString() {
            return "DifferentIndices{" +
                    "date='" + date + '\'' +
                    ", type=" + type +
                    ", name='" + name + '\'' +
                    ", level=" + level +
                    ", category='" + category + '\'' +
                    ", text='" + text + '\'' +
                    '}';
        }

        public int getMid() {
            return mid;
        }

        public void setMid(int mid) {
            this.mid = mid;
        }
        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }
    }

    public String getLocationId() {
        return locationId;
    }

    public void setLocationId(String locationId) {
        this.locationId = locationId;
    }

    public List<DifferentIndices> getIndicesList() {
        return indicesList;
    }

    public void setIndicesList(List<DifferentIndices> indicesList) {
        this.indicesList = indicesList;
    }
}
